<!-- 组织机构管理 -->
<div class="easyui-layout">
    <div class="easyui-tabs" style="height:700px;padding: 5px;">
        <div title="持股数据">
            <div style="margin:5px;">
                {#工具栏#}
                <div id="stockholders_toolbar" style="padding:5px">
                 {#   <button class="easyui-linkbutton" onclick="sellStock()">卖出股票</button>
                    <button class="easyui-linkbutton" onclick="$('#buy_stock').window('open')">买入股票</button>#}
                </div>
                {#搜索条件#}
                <div style="margin: 5px;">
                    <form action="" id="stockholders_form">
                        市场:
                        <select class="easyui-combobox" panelHeight="auto" style="width:100px">
                            <option value="" selected="selected">沪深A</option>
                            <option value="sh">沪A</option>
                            <option value="sz">深A股</option>
                        </select>

                        <a href="#" id="stockHolder_search">Search</a>
                    </form>
                </div>

                {#查询结果#}
                <div id="stock_holder_table">
                </div>
                {#------------------------------------------------------------------------------#}
                {#弹窗#}
                <div id="buy_stock" class="easyui-window" title="buy stock"
                     data-options="modal:true,closed:true,iconCls:'icon-save'"
                     style="width:500px;height:500px;padding:10px;">
                    <form id="buy_form" method="post" action="/holder/buy-stock">
                        <table cellpadding="5">
                            <tr>
                                <td>股票名称:</td>
                                <td><input class="easyui-textbox" type="text" name="stock_name"
                                           data-options="required:true"></input></td>
                            </tr>
                            <tr>
                                <td>股票代码:</td>
                                <td><input class="easyui-textbox" type="text" name="stock_code"
                                           data-options="required:true"></input></td>
                            </tr>
                            <tr>
                                <td>买入价格:</td>
                                <td><input class="easyui-textbox" type="text" name="buy_price"
                                           data-options="required:true"></input></td>
                            </tr>
                            <tr>
                                <td>买入数量:</td>
                                <td><input class="easyui-textbox" type="text" name="buy_nums"
                                           data-options="required:true"></input></td>
                            </tr>

                            <tr>
                                <td>购买时间:</td>
                                <td>
                                    <input id="stock_pool_date" class="easyui-datebox" name="buy_time"
                                           data-options="value:'Today',formatter:myformatter,parser:myparser"></input>
                                </td>
                            </tr>
                            <tr><button class="easyui-linkbutton" >提交</button>
                        </table>
                    </form>
                </div>

                 {#弹窗#}
                <div id="win_sell_stock" class="easyui-window" title="sell stock"
                     data-options="modal:true,closed:true,iconCls:'icon-save'"
                     style="width:500px;height:500px;padding:10px;">
                    <form id="form_sell_stock" method="post" action="/holder/sell-stock">
                        <table cellpadding="5">
                            <tr>
                                <td>股票名称:</td>
                                <td><input class="easyui-textbox" type="text" id="sell_stock_name" name="stock_name"
                                           data-options="required:true"></input></td>
                            </tr>
                            <tr>
                                <td>股票代码:</td>
                                <td><input class="easyui-textbox" type="text" id="sell_stock_code" name="stock_code"
                                           data-options="required:true"></input></td>
                            </tr>
                            <tr>
                                <td>卖出价格:</td>
                                <td><input class="easyui-textbox" type="text" id="sell_stock_price" name="sell_price"
                                           data-options="required:true"></input></td>
                            </tr>
                            <tr>
                                <td>卖出数量:</td>
                                <td><input class="easyui-textbox" type="text" id="sell_stock_amount" name="sell_nums"
                                           data-options="required:true"></input></td>
                            </tr>

                            <tr>
                                <button class="easyui-linkbutton" >提交</button>
                            </tr>
                        </table>
                    </form>
                </div>




                <div id="win_lifeline" class="easyui-window" title="lifeline" style="width:600px;height:400px"
                     data-options="iconCls:'icon-save',closed:true,modal:true">
                    <table id="tb_stockinfo" style="padding: 5px;">
                        <tr>
                            <td>股票名称:</td>
                            <td><input class="easyui-textbox" id="stock_name" readonly="readonly"/></td>
                            <td>股票代码:</td>
                            <td><input class="easyui-textbox" id="stock_code" readonly="readonly"></input></td>
                        </tr>
                        <tr>
                            <td>当前价格:</td>
                            <td>
                                <input class="easyui-textbox" id="cur_price" readonly="readonly"></input>
                            </td>
                            <td>开盘价</td>
                            <td>
                                <input class="easyui-textbox" id="open" readonly="readonly"></input>
                            </td>
                        </tr>
                        <tr>
                            <td>最高价</td>
                            <td>
                                <input class="easyui-textbox" id="high" readonly="readonly"></input>

                            </td>
                            <td>最低价</td>
                            <td>
                                <input class="easyui-textbox" id="low" readonly="readonly"></input>
                            </td>
                        </tr>
                    </table>

                    <hr/>
                    <table id="tb_lifeline" cellpadding="5">
                        <tr>
                            <td>支撑线:</td>
                            <input style="display: none" id="support_id"/>
                            <input style="display: none" id="press_id"/>
                            <td><input class="easyui-textbox" id="support_price" readonly="readonly"></input></td>
                            <td>日期:</td>
                            <td><input class="easyui-textbox" id="support_time" readonly="readonly"></input></td>
                        </tr>
                        <tr>
                            <td>压力位:</td>
                            <td><input class="easyui-textbox" id="press_price" readonly="readonly"></input></td>
                            <td>日期:</td>
                            <td><input class="easyui-textbox" id="press_time" readonly="readonly"></input></td>
                        </tr>
                    </table>

                </div>

            </div>

        </div>

    </div>


</div>

<script type="text/javascript" src="/web/static/js/index.js"></script>
<script type="text/javascript" src="/web/static/js/stock_holders.js"></script>

